package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserFamily;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 家庭主要成员及主要社会关系表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserFamily对象", description="家庭主要成员及主要社会关系表")
public class UserFamilyVO extends BaseVO<UserFamily> {
    private static final long serialVersionUID = 1L;


    public UserFamilyVO(UserFamily entity){
        this.userFamilyId = entity.getUserFamilyId();
        this.userId = entity.getUserId();
        this.idCards = entity.getIdCards();
        this.appellation = entity.getAppellation();
        this.name = entity.getName();
        this.politicalStatus = entity.getPoliticalStatus();
        this.workUnits = entity.getWorkUnits();
        this.phone = entity.getPhone();
        this.emergencyFlag = entity.getEmergencyFlag();
        this.otherRemark = entity.getOtherRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserFamily convertToEntity(){
        return new UserFamily(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userFamilyId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "身份证号")
    private String idCards;

    @ApiModelProperty(value = "称谓，字典值")
    private String appellation;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "政治面貌，字典值")
    private String politicalStatus;

    @ApiModelProperty(value = "工作单位")
    private String workUnits;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "是否为紧急联系人（0：否，1：是）")
    private Integer emergencyFlag;

    @ApiModelProperty(value = "其他需要说明的情况")
    private String otherRemark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "家庭成员称谓")
    private String appellationName;
    @ApiModelProperty(value = "家庭成员政治面貌")
    private String politicalStatusName;
    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
